<template>
    <div>
        <h3>一级组件：视频信息</h3>
        <p>视频id为{{ id }}</p>
        <!--嵌套路由使用-->
        <router-link :to="{name:'video-info1',params:{id:20}}">点赞</router-link>
        <router-link :to="{name:'video-info2',params:{id:20}}">互动</router-link>
        <router-view/>
    </div>
</template>

<script>
export default {
  name: 'VideoView',
  // 接收参数
  props: ['id']
}
</script>

<style>

</style>
